package com.tjzx.entity;

/**
 * StAnswerInfoId entity. @author MyEclipse Persistence Tools
 */

public class StAnswerInfoId implements java.io.Serializable {

	// Fields

	private Integer answerId;
	private String answerOrder;
	private String answerContent;
	private Integer questionId;

	// Constructors

	/** default constructor */
	public StAnswerInfoId() {
	}

	/** full constructor */
	public StAnswerInfoId(Integer answerId, String answerOrder,
			String answerContent, Integer questionId) {
		this.answerId = answerId;
		this.answerOrder = answerOrder;
		this.answerContent = answerContent;
		this.questionId = questionId;
	}

	// Property accessors

	public Integer getAnswerId() {
		return this.answerId;
	}

	public void setAnswerId(Integer answerId) {
		this.answerId = answerId;
	}

	public String getAnswerOrder() {
		return this.answerOrder;
	}

	public void setAnswerOrder(String answerOrder) {
		this.answerOrder = answerOrder;
	}

	public String getAnswerContent() {
		return this.answerContent;
	}

	public void setAnswerContent(String answerContent) {
		this.answerContent = answerContent;
	}

	public Integer getQuestionId() {
		return this.questionId;
	}

	public void setQuestionId(Integer questionId) {
		this.questionId = questionId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof StAnswerInfoId))
			return false;
		StAnswerInfoId castOther = (StAnswerInfoId) other;

		return ((this.getAnswerId() == castOther.getAnswerId()) || (this
				.getAnswerId() != null
				&& castOther.getAnswerId() != null && this.getAnswerId()
				.equals(castOther.getAnswerId())))
				&& ((this.getAnswerOrder() == castOther.getAnswerOrder()) || (this
						.getAnswerOrder() != null
						&& castOther.getAnswerOrder() != null && this
						.getAnswerOrder().equals(castOther.getAnswerOrder())))
				&& ((this.getAnswerContent() == castOther.getAnswerContent()) || (this
						.getAnswerContent() != null
						&& castOther.getAnswerContent() != null && this
						.getAnswerContent()
						.equals(castOther.getAnswerContent())))
				&& ((this.getQuestionId() == castOther.getQuestionId()) || (this
						.getQuestionId() != null
						&& castOther.getQuestionId() != null && this
						.getQuestionId().equals(castOther.getQuestionId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getAnswerId() == null ? 0 : this.getAnswerId().hashCode());
		result = 37
				* result
				+ (getAnswerOrder() == null ? 0 : this.getAnswerOrder()
						.hashCode());
		result = 37
				* result
				+ (getAnswerContent() == null ? 0 : this.getAnswerContent()
						.hashCode());
		result = 37
				* result
				+ (getQuestionId() == null ? 0 : this.getQuestionId()
						.hashCode());
		return result;
	}

}